package com.ruoyi.domain;

import com.ruoyi.car.domain.CarManage;
import com.ruoyi.common.annotation.Excels;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 车辆管理对象 car_manages
 *
 * @author ruoyi
 * @date 2020-06-18
 */
public class CarManages extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    @Excels({
            @Excel(name = "车牌号", targetAttr = "cCarid", type = Excel.Type.EXPORT),
            @Excel(name="车辆类型",targetAttr = "cType" ,type = Excel.Type.EXPORT)
    })
    private CarManage carManage;

    public CarManage getCarManage() {
        return carManage;
    }

    public void setCarManage(CarManage carManage) {
        this.carManage = carManage;
    }

    /** id */
    private Long cId;

    /** 车牌号id */
    @Excel(name = "车牌号id")
    private String cCarid;

    /** 车辆型号 */
    @Excel(name = "车辆型号")
    private String cType;

    /** 车辆维修保养明细 */
    @Excel(name = "车辆维修保养明细")
    private String cRepairDetailed;

    /** 车辆维修金额 */
    @Excel(name = "车辆维修金额")
    private BigDecimal cRepairPrice;

    /** 车辆保险到期日期
     */
    @Excel(name = "车辆保险到期日期 ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cInsuranceDate;

    /** 油卡id */
    private Long oilCardId;

    public void setcId(Long cId)
    {
        this.cId = cId;
    }

    public Long getcId()
    {
        return cId;
    }
    public void setcCarid(String cCarid)
    {
        this.cCarid = cCarid;
    }

    public String getcCarid()
    {
        return cCarid;
    }
    public void setcType(String cType)
    {
        this.cType = cType;
    }

    public String getcType()
    {
        return cType;
    }
    public void setcRepairDetailed(String cRepairDetailed)
    {
        this.cRepairDetailed = cRepairDetailed;
    }

    public String getcRepairDetailed()
    {
        return cRepairDetailed;
    }
    public void setcRepairPrice(BigDecimal cRepairPrice)
    {
        this.cRepairPrice = cRepairPrice;
    }

    public BigDecimal getcRepairPrice()
    {
        return cRepairPrice;
    }
    public void setcInsuranceDate(Date cInsuranceDate)
    {
        this.cInsuranceDate = cInsuranceDate;
    }

    public Date getcInsuranceDate()
    {
        return cInsuranceDate;
    }
    public void setOilCardId(Long oilCardId)
    {
        this.oilCardId = oilCardId;
    }

    public Long getOilCardId()
    {
        return oilCardId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("cId", getcId())
                .append("cCarid", getcCarid())
                .append("cType", getcType())
                .append("cRepairDetailed", getcRepairDetailed())
                .append("cRepairPrice", getcRepairPrice())
                .append("cInsuranceDate", getcInsuranceDate())
                .append("oilCardId", getOilCardId())
                .append("carManage",getCarManage())
                .toString();
    }
}
